package com.study.mall.mallproduct.controller;


import com.study.mall.mallproduct.entity.PmsAttr;
import com.study.mall.mallproduct.service.PmsAttrService;
import com.stydy.mallcommon.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商品属性 前端控制器
 * </p>
 *
 * @author admin
 * @since 2022-03-05
 */
@RestController
@RequestMapping("//pmsAttr")
public class PmsAttrController {
    @Autowired
    private PmsAttrService pmsAttrService;
    @GetMapping("/list")
    public R test(){
        return R.ok().put("1",this.pmsAttrService.list());
    }
}

